﻿using BCCommon.TMS.Insurance;
using System;
using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.PersonalInsuranceRecord
{
    public class PersonalInsuranceRecordRequestDto
    {

        /// <summary>
        /// 电子保单地址
        /// </summary>
        [Display(Name = "电子保单地址")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ElectricInsurancePath { get; set; }
        /// <summary>
        /// 承保公司
        /// </summary>
        [Display(Name = "承保公司")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string UnderwritingCompany { get; set; }
        /// <summary>
        /// 投保人
        /// </summary>
        [Display(Name = "投保人")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Policyholder { get; set; }
        /// <summary>
        /// 被保人
        /// </summary>
        [Display(Name = "被保人")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Insured { get; set; }
        /// <summary>
        /// 保险内容
        /// </summary>
        [Display(Name = "保险内容")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Content { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [Display(Name = "身份证号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string IdentityCardNo { get; set; }
        /// <summary>
        /// 保额
        /// </summary>
        [Display(Name = "保额")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public decimal InsuredAmount { get; set; }
        /// <summary>
        /// 保费
        /// </summary>
        [Display(Name = "保费")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public decimal Premium { get; set; }
        /// <summary>
        /// 生效日期
        /// </summary>
        [Display(Name = "生效日期")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public DateTime EffectiveTime { get; set; }
        /// <summary>
        /// 失效日期
        /// </summary>
        [Display(Name = "失效日期")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public DateTime ExpirationTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name = "失效状态日期")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public InsuranceStatus Status { get; set; }
    }
}
